package com.tianxiao.faas.common.access;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Access {
    public final static String TOKEN = "token";

    String action() default "";

    String[] access() default {};

    boolean login() default true;
}
